[Core] Use spinlock when reporting unhandled exceptions.