The suitability of locking switches closed depends on the application and circumstances. In general, the NEC does not allow this, but does make exception under certain operational and supervisory conditions. In fact, for fire pumps, it is required that the disconnecting means be lockable in the CLOSED position.
For electric utilities, I think it is very common to lock pole-mounted disconnect switches closed to prevent unauthorized operation.
It just depends on your situation.