clear atomic locks before start and cleanup