Dynamical masses of two young globular clusters in the blue compact galaxy ESO 338–IG04