autorid: make the checks for bumping num_mapped identical for alloc and rid case