Fix the ASSERT() macro.
Fix deadlock in Service::RemoveDowntime().