The door design introduced after 911 wasnt thought through properly.
Hindsight always gives one 20/20 vision. Designers, no doubt, came up with the best solution for the perceived urgent threat. They probably didn't have time to factor in pilot psychology and other items which required years of debate and trend analysis.
When all pilots are given their own toilets, how long will it be before someone finds a way of locking their toilet door from the outside?