tsan: remove unused function declarations