Do not use a mutex in a signal handler - it is unsafe. Instead use tombstones. Remove duplicate autoconf check for prctl