Added FSM assertions into the nn_sock and nn_usock code

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