main: Avoid destroying wet_output before output destroy callback is called
In using drm-backend, if drm_output destroying is pending, wet_output destroy before that destroy callback function is called. So freed wet_output is refered in this function. This patch fix this issue.