Modified the lock files methods to be able to delete locks that have overstayed