Fixes hooking the same address

When 'hook' method was called with two or more hooks targetting the same
address, only the first detoured function was called. This didn't occur
if the same address was hooked in two different 'hook' calls.