Improve multicast address locking in vlan and lagg.

Ticket:	#5637
(cherry picked from commit dc013d5815017b4c22d39a2833973bd1049165c7)