Added a mutex around scalability statistics and printing out average at the end