The modified version is broken also. As demonstrated by the attached code.
In reply to Re^6: Avoid Locking Entire Hashes by BrowserUk in thread Avoid Locking Entire Hashes by jagan_1234