Steinhoff bags last-minute debt restructuring deal