Please have a look at this branch. It seems like it created race conditions much more reliably. Maybe it can help with the reproducer?
TODO: Better memory calucaltion #22