Build detour & nettle only once (if needed).
Fix listing of items (un)locked.

Problem was of the form 'sprintf(buffer, "%s…", buffer, …)'.