forked from CGM_Public/pretix_original
* Introduce locking to prevent duplicate invoices This is not a perfect solution as it does not handle all code paths to create invoices, but it handles all that seem likely to be triggered concurrently * Review note