add oldParent option to store.put for reference (#17902)

This is a feature request.

See https://bugs.dojotoolkit.org/ticket/17902