Add timeout_wrap to rpc connectors common module

Use timeout_wrap in socket/zmq connectors to get the same behavior and
error handling regarding timeouts.