Dynamics of stellar black holes in young star clusters with different metallicities – I. Implications for X-ray binaries | Synapse