distinguish wrapper and sosi tasks & bug fix
- bug: hrc_stream should increase read/write counter before unlock
  + this avoid cases where stream is destroyed by the other task before
    read/write counter is updated
- wrapper vs sosi: distinguish them by the node location
  + glob_input/output can be consider as sosi