[PATCH v2 2/7] quartz: Use the graph critical section to synchronize media event methods.