Multithreading support for loop filter

With these changes, at all speed/quality presets the loop filter
operation is multi-threaded.