threadshare: Don't drift slowly when throttling the main context
threadshare: Don't drift slowly when throttling the main context

Instead of taking a new time every iteration, take it once in the
beginning and add our wait time on every iteration. This prevents
accumulating errors and slowly drifting.

sdroege/rsplugin,sdroege/rsplugin