Abstracted transient locking methods and added unit tests for transient locks and the $force param