Waiting for socket shutdown is done via efd rather than via condition variable.

This makes the closing interruptible (e.g. Ctrl+C).

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
nn_cond class removed as it was not used anymore

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>