Improve InstanceIdentifierCodecImpl performance

Instead of key iterator and lookup, use entrySet(), just as suggested by
Sonar.

Change-Id: Idada8d9a01a92b4398589df593f96b39748394a9
Signed-off-by: Robert Varga <rovarga@cisco.com>