localalloc: Clean up header file

Associate each cleanup with its #define, it's just obviously saner.
localalloc: Define a #define for gs_unref_keyfile

This got missed before.
tests: Add a localalloc test