Add ObjC API for scheduling work in the main thread