perf tools: Change perf_mem__lck_scnprintf to return nb of displayed bytes