Fix cleanup multikey mappings (FreeBSD bin/182463)

It's a regression caused by the SLIST migration; the code detects
for multikey (screen-specific) mappings but always delete from
the head of the list.