[jit] Applied patch from Vladimir Kargov <kargov@gmail.com>. Fix a local register allocation problem involving global registers and x86 register constraints.