Well the good news first it looks like I can reproduce the issue. Now the bad news is that I don't have the slightest idea what's causing it. The patch you mentioned results in different timing around those functions, but I can't see how it should cause something like this.