syncCallbacks property for WorkerPromise

Added support for WorkerPromise to accept the syncCallbacks parameter to control which thread the worker operates on. Included a test that fails with current implementation, but passes with this pull request.