Growing massive black holes through supercritical accretion of stellar-mass seeds