[x] I used gofmt for formatting the code before submitting the pull request.
The JFrog CLI config file is presently only locked before jf c add, jf c edit, jf c rm, and jf c use commands. This pull request includes a lock before jf c import to prevent the config file from being corrupted when importing multiple server configurations simultaneously.
[![👍 Frogbot scanned this pull request and did not find any new security issues.](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerPR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)
[x] I used gofmt for formatting the code before submitting the pull request.
The JFrog CLI config file is presently only locked before
jf c add
,jf c edit
,jf c rm
, andjf c use
commands. This pull request includes a lock beforejf c import
to prevent the config file from being corrupted when importing multiple server configurations simultaneously.Fix https://github.com/jfrog/setup-jfrog-cli/issues/141 and possibly https://github.com/jfrog/setup-jfrog-cli/issues/94.