[PATCH 4.9 09/62] scripts/setlocalversion: Improve -dirty check with git-status --no-optional-locks