setOneShot and RTMCopyRam?

I managed to separate out the audio portion of my code but it is not locking, probably because whatever other thing wanted the same data is now gone. It is for sure the audio system, setting the library to null there were no problems at all whereas otherwise it would deadlock in a few seconds.