Implement validator for LivestatusListener::socket_type.

Fixes #4751