Correctly update the SyncKey when creating or updating folders