there is no way to get it perfect afaik because the temperature and luminosity will override locks; however you can get it almost exactly right except a discrepancy of 0.003 in luminosity:
first uncheck the box to the right of luminosity
then set the mass, with diameter locked
then set the diameter, with the mass locked
next, with the diameter locked and luminosity unlocked, set the temperature
also there is no way to set the metallicity