cpp/thread/shared lock/operator bool

Checks whether owns a locked mutex or not. Effectively calls owns_lock.

Parameters
(none)

Return value
if has an associated mutex and has acquired shared ownership of it,  otherwise.