rescan: only unlink disabled smart filters when the metadata changes
This MT improves the smart filters unlinking logic by only unlinking smart filters that are disabled, instead of any kind of filters. The patch also removes redundant filter hooks.