That would work for me. If we look at the things which actually lock it, I suspect that the lock before free is just being extra cautious / unnecessary (At the end of the destructor the locks will be destroyed, so if anything tries to lock the buffer and doesn't land before the destructor just because of misc. timing, bad things would happen)