lock periodic task when someone worker is running