Removed deadlock in shutdown by using 1 mutex for 2 conditions.
Removed deadlock in shutdown by using 1 mutex for 2 conditions.

csound/csound,ketchupok/csound,csound/csound,ketchupok/csound,ketchupok/csound,ketchupok/csound,csound/csound,csound/csound,ketchupok/csound,ketchupok/csound,csound/csound,ketchupok/csound,ketchupok/csound,ketchupok/csound,csound/csound,csound/csound,csound/csound,csound/csound,ketchupok/csound,csound/csound