Fix invalid locking order and deadlock in rename operation

This commit should prevent deadlock on dp_config_rwlock when running
`zfs rename`.

See #2625 for the description of that changes.

Minors renaming will be little out of sync with actual rename, but I don't think it's a big deal since snapshot creation works same way (in meaning of synchronization).

Fix #2652, #2525.