For this fix we changed all of the set_lock_on_exit calls to
set_unlock_on_exit to make it more readable. We also found
some inconsistencies in the code around these calls which would
lead to a deadlock of the paths corrected were executed. TRQ-2465