ispdy: more thread safety