oss: Introduce sound device lock.