Revert "Add AllTargetsBindings sublibrary" as it breaks cmake build on (atleast) windows and darwin.
tsan: refactor overly-complex logical condition