threads: correct 'swap()' documentation