lock_store_pth before merging with modes