[Deadlock detector] Fix CMake build rules for shared runtime