generate a unique barrier name if running in a Flux/SLURM job

As discussed in #50.