Deep copy when passing list to thread