Only block allocation if we throw an actual OOM, even if the cache/heap is
very full, and the disk is full so we cannot swap.