update threadsafe variable in app.yaml