tests/flakes.sh: Make sure flake7 is clean
tests/flakes.sh: Make sure flake7 is clean

Cherry-picked from the lazy-trees branch, where we no longer write a
lock file if any of the inputs is dirty.

NixOS/nix,NixOS/nix,NixOS/nix,NixOS/nix,NixOS/nix