Due to CMake mis-configurations, some gtest binaries may be added to the test list more than once. This patch makes lit avoid such cases and issues a warning when it happens.