Electrical switch lock for industrial applications