[PATCH 4.9 046/171] IB/core: Fix the validations of a multicast LID in attach or detach operations