make norm/cache.py thread-safe and update norms