[AMD64] Fix bug when getting a signal while throwing exception.

This is a very rarely occurring bug that's also still present on x86
and possibly other architectures, as well.