Make AmbrosePPNL work in multithreaded environment with pig version 12+