IOT-1828 Fix oc_mutex_assert_owner bug