I'll repeat myself
In the freighter I fly, we manage to make our own coffee, heat our own meals and use the toilet without the help of an air hostess, all the whilst complying with our SOP. If a galley and toilet were located behind the cockpit door and my colleague were to become suicidal, at least I would have a chance to disable him without being locked out of the office, as long as he doesnt have over 100ml of toothpaste or deoderant on him.
What I am suggesting is that in airliners that carry pax, the flight deck crew have their own toilet and galley behind the cockpit door. This would result in a few less rows of seats, and will therefore never happen.