Initialise lock state of newly opened subviews (fixes issue #4520)

Fixes an issue with the edit lock that wasn't detected so far because it can only be triggered by opening a new subview and editing it during a save/verify, which typically only take a few seconds. However this issue is very clearly present with the new merge tool.

Merge request reports

Loading