I was hoping that you could adapt your code, but if not then hmm, have you tried using a partial lock?
In most cases I use AStream_NewData for commutations between multiple devices including network EPoS printers, ESP/Arxuino desktops etc.
I've never had any issues with communications, even with the current Android 11, but I do know that some cheaper Chinese brand devices can cause huge issues.
Anyway