Remove Raise on Lock

Remove raise on file lock as it causing issues in an application. This may have unintended side effects.