Prevent race condition on MAC addresses