Cast refcounts to _Atomic before use. GCC doesn't care, but Clang is strict about this. Change-Id: If34305303a87459985c98423a8283cad704ae984