Fixed thread mutex problems.