app: avoid mutex contention on queue related code
provision/juju: use sync.Once to avoid mutex contention