Heavy-quark correlations in deep-inelastic electroproduction