The plugin expects to have undefined references to symbols exported by the loading process, which isn't supported by shared libraries on windows.
Just disable the whole directory unconditionally on Windows, as the test essentially is a no-op there anyway.
It seems there is some prior reason this is done this way, so that reconfiguring a build directory from BUILD_SHARED_LIBS=ON to OFF and back rebuilds the executable. Otherwise lit test discovery will find it.
To this point, I think we should simply disable this whole directory on Windows. (if (WIN32)) One cannot switch from win32 to non-win32 in the same directory and expect things to work.