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

Change-Id: Id595ddaaf492c3c97affc528e03e8f4ddc6176c7