Make sure generated journal numbers are unique