Changes method of waiting in db_flush_extra_labor_event(), which also blocks if labor is pending. Adds testMonitorSync()