Doesn't Lemmy let users block instances? So no issue here.
The problem seems to be with Mastodon (and possibly others like Pixelfed, Bookwyrm, etc), which I think is controlled at instance level. Fortunately, the admin of the Mastodon instance I'm on has defederated Threads.