fix Loop filter error under multithreads on encoder when #TEST_BED enabled

review at:
https://rbcommons.com/s/OpenH264/r/762/