Have seen instances of projects getting locked when a change is made, say adding a resource to Team/Staff page, but Clarity doesn't immediately complete the action (wheel spins, user gets tired of waiting and navigates away).
If you are experiencing similar behavior, need to identify what is blocking the completion of this activity. Involve a DBA at this point. A DBA will be able to monitor blocking actions and possible solutions. You may have things outside of the Clarity app that are contributing to this - drive configuration issues, corrupted indexes, etc.
By regularly clearing locks, you may be ignoring a serious problem. We once had one bit wrong in a table, a bit that our users and IT team had no access to. Took weeks to find, with a lot of help from CA and IT-ROI. No one knows how the bit got changed. Point is, locks can be set for several reasons besides open project in MSP/OWB/Clarity Gantt - these locks showed normally clear quickly, before anyone notices - if they aren't, you may have a bigger problem that needs investigation.
Dale