[Offload] Fix self-deadlock on RPC initialization (#219012)
Summary:
Previous change fixed memory leaks, but I neglected the fact that
internally we call a function `initRPCDoorbell` from the AMD plugin that
itself takes the mutex under the mutex, causing a quite obvious
self-deadlock. Do not hold the mutex any longer than necessary.