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 worker id
  - output stream of sosi is considered as input of the program,
        stream.type = LPEL_STREAM_ENTRY
  - input stream of sosi is consider as output of the program,
        stream.type = LPEL_STREAM_EXIT