fs: Fix setting new deployment ID in format when not present (#8517)
fs: Fix setting new deployment ID in format when not present (#8517)

The code does not properly set a new deployemnt ID when not present
in format.json: it loops twice without releasing write lock on format.json
causing an infinite locking error on the same file.

This commit fixes and simplifies a little the code.
NitishT/minio,aead/minio,fwessels/minio,krisis/minio,harshavardhana/minio,vadmeste/minio,aead/minio,harshavardhana/minio,fwessels/minio,balamurugana/minio,harshavardhana/minio,fwessels/minio,NitishT/minio,aead/minio,harshavardhana/minio,aead/minio,NitishT/minio,donatello/minio,harshavardhana/minio,aead/minio,minio/minio,harshavardhana/minio,harshavardhana/minio,fwessels/minio,minio/minio,harshavardhana/minio,aead/minio,vadmeste/minio,NitishT/minio,aead/minio,donatello/minio,balamurugana/minio,aead/minio,krisis/minio