[PATCH 6.6 154/322] octeontx2-af: Fix max NPC MCAM entry check while validating ref_entry