minimize critical locking sections

in (dis)associate key