MAL: added threading support to PAPI/loop tool