lavr: add a function for checking whether AVAudioResampleContext is open
lavr: return an error if a avresample_open() is called on an open context