scheduler: add scheduler background worker helper
This is to be used by applications (and eventually internally with syntax highlighting) to manage buffer updates in what will allow us to make a more fair fashion along with reducing frame stuttering under load.