Deprecate thread.perms
Deprecate thread.perms

This has been informally deprecated for some time, but mark it as such and remove one easily-replaced call to it.

google/CodeCity,NeilFraser/CodeCity,NeilFraser/CodeCity,google/CodeCity,NeilFraser/CodeCity,google/CodeCity,google/CodeCity,NeilFraser/CodeCity