Lock: Give a better error message with permissions issues
Improve lock permissions error message