Help Identifying Weird Component
This looks like a resettable PPTC fuse with an additional control terminal. The third terminal is used for external activation: when abnormal conditions like overcharge or overheat are detected by the battery controller, it can force the fuse to open even if the current stays within limits:



(source)

The component sits on the glue blob rather than the PCB because it needs to stay hot when latched up. PCB would act as a heatsink and could reset the fuse before the short circuit is removed.