Sir, no passenger coach during journey is ever locked with a device openable with a separate key. Yet. Circular slides are there provided to each door of the coaches which make a door not openable from outside.
Still, to my knowledge, there does not exist any rule which prescribes a particular duration through which the doors must be so locked.