Make the mutex guard lifecycle finish before the send ipc command by adding scope around the code. Fixes #395 .