unlock the connection before doing stuff with the frame, which could lock arbitrarily long