fix: lake: remove module dynlib from platform-independent trace (#4478)

Fixes a bug where Lake incorrectly included the module dynlib in a
platform-independent trace. It was incorrectly excluded only external
native libraries from the trace. Also adds a test.
4 files changed