lock when dump