Avoid repeated lookups in map of sockets
Avoid repeated lookups in map of sockets

`check_socket` was performing redundant lookups of the socket key inside
the map of sockets. Replacing it with `find_socket`, which returns the
found socket, enables merging the two subsequent accesses.

mschubert/clustermq,mschubert/clustermq,mschubert/clustermq