34-year-old Rockets center loses $4 million on contract because of obscure NBA rule