[WFLY-1297] Possible race when restoring persistent bundles

https://issues.jboss.org/browse/WFLY-1297