fix Loop filter error under multithreads on encoder when #TEST_BED enabled
fix deblockIDC and mutithread logic error
Merge pull request #1288 from lyao2/threadIDC

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