perf tools: Introduce tools/lib/lk library