Cleanup of nn_queue_remove function.

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