Here is a small script I had written for one of my personal projects.
By pressing the Y-KEY in object mode, you can now toggle on/off the locking of the transformations of selected objects.
Blend file with the script:
I have some other ideas that I want to implement. Will post updates in this thread itself. Hope this is useful to you.