maps: fix null termination in code regions detection

The binary name used to detect the regions belong to the same ELF
binary should better be null terminated just in case the strcmp is
used instead of strncmp.