Implement atomic set of the last uncaught Objective-C exception.

This avoids a race condition between initializing the last exception value, and
any other fault that may occur concurrently.

Issue: PLCR-521