Allow to get socket from pgsql_proto to be able to set more socket options.