ISPN-2711 NPE in StateConsumerImpl.addUpdatedKey and isKeyUpdated

updatedKeys can be set to null by another thread that calls stopApplyingState() between the initial null check and the actual access leading to NPE. To guard against this it is enough to grab a local copy of the reference.