Avoid deadlock in a convoluted situation with an IME and a URP client

Change-Id: I0338d1c68fe6be8793777a3a238c750560bcf7fe