Man who refused to register son’s birth loses high court case