build: handle platforms without multiprocessing.synchronize