Unlock write queue after popping each message