Deprecate threads_init/enter/leave/frame_source().