Samba doesn't yet implement SMB2_CREATE_APP_INSTANCE_ID and SMB2_CREATE_APP_INSTANCE_VERSION behaviour. We'll need to implement an additional index on the opens database, indexing by Open.AppInstanceId (cf MS-SMB2 3.3.5.9.13), similar to the recent addition of an index by CreateGuid for the replay cache.