Add stat_reset command.

This command is designed to get statistics from rspamd and reset
it to a zero state.
Fix a problem with listening on sockets.

Add stat_reset command to rspamc while I'm here.