Added MEM_FROZEN checks before adding entries to captbl / pgtbl.