CppAD: Apply changeset_3367.diff
- Fix optimize user atomic function