tsan: refactor mutex api
tsan: split runtime into more files
+ remove unnecessary includes
tsan: refactor interface functions
tsan: introduce public memory access functions