OK, poor switch position is fine, but why on earth was there not a F/A on the flightdeck during the restroom break? With the threat of the badguys entering the flightdeck just flipping the door unlock switch on does not sound like the brightest thing in the world to do. one of the inflight crew should have been on the flightdeck ready to open the door after verification.