console: make QMP/HMP screendump run in coroutine