Replaced weak_ptr by raw pointers to disallow locking weak references, which results in shared ownership behavior.