malloc: Add state transitions for KASAN
- Reuse some REDZONE bits to keep track of the requested and allocated sizes, and use that to provide red zones.
- As in UMA, disable memory trashing to avoid unnecessary CPU overhead.
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 06a53ecf24005b3a74b85ecc4b504a401ac26cd0)