Stream module review

 * assert checking has message now
 * pipe connection check added in readable stream
 * drop mutex in readable stream cause the code is not thread safe anyway
 * minor code styling
Fixed possible bug when stream variable is not assigned (maybe, an exception is thrown in init method or earlier)