generic/fmp4: fix race condition in aggregate
Note: 2d commit is a suggestion to use the opt-ops
traits so as to avoid closures. Feel free to drop it if you don't think this improves code.
1st commit reverts 402500f7. See discussion below for details.
Fixes #216 (closed)
Edited by François Laignel