[DF-4152] Codestyle fixes. Posix thread shutdown.