When we deploy control, we always have to understand what we are trying to achieve.
In the illustration, if the purpose is just to prevent accidential openning of the cabinet door hurting nearby pedestrian, then something fixes the door in position suffices. There is no need to apply a lock because it will involve key management. Without proper key management, accessing the cabinet inside will be affected.
As such, don’t impose unnecessary and excessive controls. It won’t improve but complicate the use case.