Fix the keymap handling
Using MAP_PRIVATE in our source buffer means copy-on-write so our data written into the map immediately disappears again. This leads to a empty string when sending a keymap to a client.
Didn't get detected because the test for this had a FIXME to test for this...