Locks the audio driver's main loop.
Note: Remember to unlock it afterwards.
public static void Lock()