On closer review, it looks like there was a race even with the synchronized method. Fixed in 9d384cb31ee599c67030631a33f5788cf512bf19.