nn hogwild training fix + demo

Fix to make neural network reduction compatible with hogwild training.

This works surprisingly well: hogwild is slightly beating sgd+averaging in these demos.