However, your strategy will not work. Lock-On affects ghosts, but not Guillotine. Since this is Hackmons though, try equipping your Pokémon with Sheer Cold or Fissure. Sheer Cold is good since nothing is immune to it.
If having Guillotine is nessesary, you can also use Mind-Reader but that would take up another turn.
Source: I tried it out