Fix pickling errors in multiprocessing / subscriber group tests