mm: ashmem: Fix system lockup if memory is low