codec_support/test: add a function for testing multi-threaded decoders