Phase diagram of QCD with four quark flavors at finite temperature and baryon density