Fix Possible Race Condition in TSDB (#7815)
Fix Possible Race Condition in TSDB (#7815)

* Replace tsdb chunk mapper size with atomic; protect mmappedChunkFiles with read path mutex on DeleteCorrupted

Signed-off-by: Max Neverov <2e3e0b537870d2db9db00b2a24b33f2548fcb778@gmail.com>

* PR fixes

Signed-off-by: Max Neverov <2e3e0b537870d2db9db00b2a24b33f2548fcb778@gmail.com>
GoogleCloudPlatform/prometheus,alileza/prometheus,keegancsmith/prometheus,keegancsmith/prometheus,prometheus/prometheus,prometheus/prometheus,prometheus/prometheus,keegancsmith/prometheus,GoogleCloudPlatform/prometheus,alileza/prometheus,GoogleCloudPlatform/prometheus,prometheus/prometheus,GoogleCloudPlatform/prometheus,GoogleCloudPlatform/prometheus,alileza/prometheus,prometheus/prometheus,alileza/prometheus,keegancsmith/prometheus,keegancsmith/prometheus,alileza/prometheus