A Southwest pilot had to crawl into the cockpit window after the flight deck door was locked