The real answer that has been suggested by myself and others is to keep the cockpit door as it is but move it rearwards so the forward toilet becomes part of the flight deck.
What about those aircraft that don't suit that option? Granted they don't do flights THAT long but sometimes 2 hours is long enough, if not too long, when nature decides to call.