HCOLL-21 Fixed bug in VanillaSharedHashMap -- notifyPut called with probably incorrect positions; a small refactoring to prevent such mistakes in the future (limited `pos` scope to the loop body)