The NSW premier will enter last-minute talks with rail unions to prevent a planned three-day halt across the state's urban and inter-city train networks.