remoteproc: fix the error check for idr_alloc