gras: mutex fixes for uid API calls