ALLJOYN-1810 Fix deadlock due to SetLinkTimeout.

Also, fix race conditions related to adding/removing alarms in
IODispatch

Change-Id: Ia0f45b68902de866a84df915d5ed0bda6708844d