This code could also cause an exception which could leave the lock in a locked state.  I would suggest moving this status code to the try area or moving it out side of the try-catch-finally completely.