core_local: local channel data not being properly unref'ed and unlocked