[openFATE 305860] Improve Apache graceful restart (remove potential race condition)