Fix thread sanitizer
This branch fixes a compilation error if gcc's -fsanitize=thread is used. In addition to that, also the second drive caller is written to the restart file.
This branch fixes a compilation error if gcc's -fsanitize=thread is used. In addition to that, also the second drive caller is written to the restart file.