Function Weak.lock

Return a Rc that contain the underlying resource if it has not been disposed.

Rc!T lock();