fix invalid locking order in rename operation

This commit should prevent deadlock on dp_config_rwlock when running
`zfs rename`.

Fix #2652.
Fix #2525.