mq_notify: join worker thread before returning in error path