Make sure that we can’t build the same derivation twice at the same time. Fix https://github.com/NixOS/nix/issues/5029