Close ctx mutex on last socket termination

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Hajime Saito added to the AUTHORS file

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