Added pthread's mutex support.