coreserver: Move str cast to option helper

Signed-off-by: Michael Buesch <m@bues.ch>
Don't clear OS bit on successfull ITB/DTB

Signed-off-by: Michael Buesch <m@bues.ch>
Fix status word handling over call/ret boundaries

Signed-off-by: Michael Buesch <m@bues.ch>