Patch exit jumps before entry jumps in attachStub to avoid racing
Apply bhackett's comment