Make open_compressed concurrency-safe