rpmsg: glink: Release idr lock before returning on error