lock files were being written but the duplication meant they werent checked correctly