kgdb,x86: fix regression in detach handling