Revert "Correct the clobbering of registers in getThreadEntry"

This reverts commit f6c517f12e71a5123383739ce6bc7dc32b46e4a4.