Probing the progenitors of spinning binary black-hole mergers with long gamma-ray bursts