fix(threads): move runtime import required for Thread.permissions_for
#5583
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention