OutputThread: unlock mutex for CloseFilter()

Be consistent.
OutputThread: close the output plugin after filter failure

Fixes memory leak because ao_plugin_close() never gets called.