realtime_sem: fixed a compiler warning.

* the variable is initialized anyway on the success code path.