raw: Add "is bound" check to sw_socket and sw_bind.