Fix concurrency issue and change way of storing child stats

Time data was being shared among threads incorrectly. Then stats
were not correct at all.

As threads share the address space, no need to store child stats
at custom files anymore. Instead, store at child job structure.

Signed-off-by: Raphael S. Carvalho <raphaelsc@cloudius-systems.com>