Internal shocks in a relativistic wind as a source for gamma-ray bursts?