This problem hasn't been fixed at all anywhere (though it was reported many times for months & months); if it's just one line that needs to be changed back, the MAME team should change it back and leave it alone like their mamma told them to until they find a better fix, IMHO.
For those who don't know how to compile their own with the changed line of code or who can't get compiling to work for lack of time or otherwise (I fall, sadly, into both categories), I recommend using NoNameMAME - it is fixed in that variant, and works like a charm (I tried it out to fix something else, and found out as a nice bonus that the "do not approach Death Star" bug was fixed).