docs: private void openNewPartIfNecessary(long sizeThreshold) throws IOException {
  		final long fileLength = fileStream.getPos();
  		if (fileLength >= sizeThreshold) {
  			lock();
  			try {
  				uploadCurrentAndOpenNewPart(fileLength);
  			} finally {
  				unlock();
  			}
  		}
  	}