LegacyBiosThunkLib: better critical region interrupt protection

And a little bit of style ;-)