core/local/analysis: Refactor getChangeByPath() to withChangeByPath()
core/local/analysis: Refactor getChangeByPath() to withChangeByPath()

Will make it easier to combine path-related changes with inode-related ones.

This will allow for future analysis functions to be chained
in `or` (`||`) expressions, even when only a few of them depend on
some previous same-path change, E.g.:

```js
changeFound(
  detectCase1(sameInodeChange) ||
  detectCase2(sameInodeChange) ||
  // Returns the callback result:
  withChangeByPath(e, samePathChange => (
    detectCase3(samePathChange) ||
    detectCase4(samePathChange)
  )
```

cozy-labs/cozy-desktop,cozy-labs/cozy-desktop,cozy-labs/cozy-desktop,cozy-labs/cozy-desktop