aux/trace: avoid deadlock in screen::flush_frontbuffer hook
this hook usually requires mapping a resource, which will trigger a trace dump internally, which requires locking the output mutex, so finish the trace dump before calling it
this hook usually requires mapping a resource, which will trigger a trace dump internally, which requires locking the output mutex, so finish the trace dump before calling it