fix error cases in mkostemps core
fix error cases in mkostemps core

1. wrong return value and missing errno for negative suffix len
2. failure to catch suffix len > strlen
3. remove unwanted clearing of input string in invalid case

chardi/musl,chardi/musl,chardi/musl