I find US airlines much stricter about people in the cockpit area, they'll block the aisle with a cart whenever the cockpit door are open. AF however, when flying CDG-TLV, pilot just exited the cockpit when I was waiting at lavs no problem and ended up queuing after me for the lavs.