[scudo] Do not trim the secondary cache if releasing is disabled. (#223881)

When the ReleaseInterval is set to less than zero, then releasing has
been disabled. In this case, honor this and do not trim the cache using
the MaxCacheResidentyBytes value.

Add a test to verify this behavior.

GitOrigin-RevId: 29b702e5e690b0216b81eabb9b023030de9b90d7
2 files changed