[update] change bool * to volatile sig_atomic_t *

This affects blocking lock functions where a bool * could have been used
to cancel the operation.  In compliance with the C standard, a
volatile sig_atomic_t * better suits the job as it can be set within a
signal handler.

sig_atomic_t in kernel space is typedefed as int in this commit as glibc
does.

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>
[tests] 1s delay after spawning main for initialization

This specifically affected valgrind check that slowed the processes so
much that the secondary tasks gave up on the resources being initialized
by the main process.  This delay would give a second of exclusive
execution (in valgrind) for the main process to make sure it allocates
shared resources.

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>