FAIMS-847: added exclusive locks when deleting files