Add unittests for pthread APIs with timeout parameter. Bug: 17569991 Change-Id: I6b3b9b2feae03680654cd64c3112ce7644632c87
Bug: 24341262 Change-Id: I5472549e5d7545c1c3f0bef78235f545557b9630