perf tools: Introduce tmalloc() and tfree()

The tmalloc() and tfree() are simple allocator interfaces that work
for multi-thread environment.  They'll be used during sample processing.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>