mqueues: Port POSIX message queues from NetBSD.