rhbz996939 Check lock when uploading/clearing TM, report lock errors