optimized refcounting for MIPS (use asm optimized atomic inc/dec)