fix: release the buffer when reading an `.olean` file fails

This PR makes `CompactedRegion.read` release the file mapping when it rejects a file after loading it, e.g. because the file is truncated. Previously the mapping stayed alive, which on Windows prevented the file from being overwritten or deleted afterwards.

The unmap/free logic of `lean_compacted_region_free` moves into `release_region_buffer`, which `lean_compacted_region_read` now also calls when the framing checks or `region_reader::read` throw. The `olean_truncated` test additionally frees successfully read regions so that it can keep overwriting its file on Windows.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2 files changed