[FaceRest] Add a flag to switch sync/async mode