Fix race condition in restart_init
Description
Fix race condition in restart_init.
News snippet
Fix a race condition that could lead to an MPI deadlock.
Checklist
-
I have checked that my code follows the Octopus coding standards -
I have added tests for all the new features added in this request.