Speed up MP_Node.is_root by checking node depth