Cavity length dependence of the threshold behavior in thin quantum well semiconductor lasers