Bain Capital has indefinitely closed its Boston headquarters because an employee has gotten a preliminary diagnosis with the novel coronavirus, according to a spokesman.