Mastodon-the-software doesn't have to do anything. Mastodon instances have to choose whether to block Threads or not.
Of course there is no 'central enforcement', that would be at odds with the very principle of federated social media (namely, that instance admins are free to choose how they run their own instance).