Phase transitions in the hard-core Bose-Fermi-Hubbard model at non-zero temperatures in the heavy-fermion limit