I think that should be
lock ${$hash{key}}; [download]
The idea is that $scalar is shared, and therefore lockable.
In reply to Re^3: Locking hash values by ikegami in thread Locking hash values by bucky0