Fixed bug where incorrect buffer mutex would get unlocked.