Fix compiler cast complaints in SPARC atomic operations