Fixed SystemV message queues
Fixed deadlock on interrupted wait