[PATCH 2/2] tests: add daemonstreamtest covering the stream close deadlock