target: Add range checking to UNMAP emulation