When building shared, disable many LCM test exes.

Most users build static, so this does not affect them. For build-test-repeat
loops, a shared build speeds up the loop considerably. Disable the LCM test exes
when doing a shared build, as these test exes have a number of linking errors in
that case.