change sync variable names and set thread name prefix for sync threads