Concurrent creation of account.journal.period
In case of use in a concurrent environment the pattern we use in check_journal_period_modify
which search for a journal then creates it if necessary result in SQLConstraintError because we have a unique constraint.
We should lock the database to allow to replay the transaction after a while which should be enough for the creation of the Period Journal object to happen.