Added mutex to API sequence number
Merge branch 'api-click-rework' into session-layer