Fix UPC atomic operations on types that have no builtin compiler
support.  Sync with GUPC smp runtime.