Add pthread example for mutex and condition