Add check to make sure we're setting or getting a key that's actually available on this thread