cpp/thread/shared lock/swap

Exchanges the internal states of the lock objects.

Return value
(none)