debuggerd_handler: actually wait for pseudothread to exit. am: b64dd85c94 am: f47ca0f2d5
am: 4fb7a5ea69

Change-Id: I28700a1a4c516227fd4d7ac0039abb6fb3b8dd8c