Added unlock for the receive mutex of the previous commit.