Quick fix of protogen user_api usage.
Use a mutex to protect a running environnement.