fix incorrect initial count in shgetc when data is already buffered