moved it into threads.c now instead of having it duplicated in various places.
also rename render operators SCREEN_OT_ --> RENDER_OT_