I encounter the same problem but found that the mongodump is able to "lock" the terminal finally after adding double quote "" to your mongodump
""
i.e. something like mongodump --uri="mongodb://localhost:27017" --gzip --archive="backup.gz"
mongodump --uri="mongodb://localhost:27017" --gzip --archive="backup.gz"