[NXCM-5392] Block P2 composite groups as member of P2 legacy group

https://issues.sonatype.org/browse/NXCM-5392
https://bamboo.zion.sonatype.com/browse/NX-OSSF18