Add support for sysv message queues.
If a task has never had its hpc counters started, don't try to stop them when the task is destroyed
Reply to gdb's detach request so the client shuts down more quickly.