Update topology.cpp

Fixing priority reduction linux code to only compile on linux systems (not all POSIX systems) as syscall(SYS_gettid) is only available on linux.