Heavy-quark correlations in direct photon-photon collisions