It was a multithreading bug. #blush
My code: single thread. Third party library: not so much.
Apologies for the noise.