ashmem: Fix System lockup if memory is low