The formation of compact objects at finite temperatures in a dark-matter-candidate self-gravitating bosonic system