Taking shard lock earlier in reparenting actions.
Merge pull request #9 from youtube/reparent-fix

Taking shard lock earlier in reparenting actions.