Sub-surface plasma flows and the flare productivity of solar active regions