Fix exception term when trying to use the `threaded/0` directive within a protocol or category