With this pr, map.clear operation clears client nearcache. fixes #2363

this is potentially fragile - if there is a new global (=not working with a key) EntryEventType then this throws NPE