sparc: explicitly cast negative phandle checks to s32