Don't redefine socket() if socket_wrapper is already in use