Fix ambiguity warnings with SharedArray

As reported and discussed here:
https://github.com/JuliaLang/julia/pull/8432#issuecomment-63202199