IDGEN-6 - Duplicate IDs can be allocated to different patients under high load (trying to fix unit test, which passes locally, but fails on bamboo)