host: Unlock writeMtx after writing attach exit

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>