Allocator: Fix UAF in lwis_allocator_release()

Current implementations use a spinlock to protect block_mgr accessing,
but this spinlock is holded by block_mgr. It causes use-after-free when
release block_mgr. Move the spinlock to lwis_dev to fix it.

Bug: 349428550
Test: GCA, CTS, PTS
Change-Id: Ia436514cb3485cfab1da64e21b2618808f28db1c
Signed-off-by: Holmes Chou <[email protected]>
4 files changed