git-p4: fixed getP4OpenedType fail with slow connection to Perforce server

Sometimes it takes 2-3 attempts to determine a newly added file type.