Some unused code removed and minor corrections

rxosd is always pthreaded.