Dynamical versus stellar masses of ultracompact dwarf galaxies in the Fornax cluster star