[libcontacts] Remove contacts from name groups on deletion

When contacts are removed from the cache they must also be removed from the name groups they were previously grouped in.