function rejectedSyncPromise(reason) {
    return new SyncPromise(function (_, reject) {
        reject(reason);
    });
}
Creates a rejected sync promise.

@param value the value to reject the promise with
@returns the rejected sync promise