Also fix a bug in WeakPtr::lock() which would assert false if the underlying weak link was not initialized