Fix seg fault with global receive queue

Mutex was unlocked to soon.
Add DEBUG_SEND prints