[Tizen] Check if stream was opened with correct mode

This patch adds checks whether stream was opened with correct
mode before read or write operation is performed.