Fix race condition with cancelling DELAYED request (fixes #130)

Signed-off-by: Paul Colomiets <paul@colomiets.name>
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Minor coding style fix.

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Refactored "ipc" test