smb3: make query_on_disk_id open context consistent and move to common code