[PATCH 6.7 157/353] octeontx2-af: Fix max NPC MCAM entry check while validating ref_entry