Actually the rule book says that the doors of the coaches shall be locked by the TTE in charge during the run, whether day or night, and shall be opened at the stopping stations.. One of the duties of the TTE/coach attendants. Unfortunately these do not find mention in the new TTs (time tables). If I am to retrieve the rules, I shall post.
Good wishes.