Improved locking in msg.c