Thread-safe redis connection