Yeah, damned right you didn’t!
You should never lock ANYTHING in your process callback, not even a mutex! You’ll find many threads on this forum discussing lock-free fifos and other tricks for communicating back to your UI code from the audio thread.
