If it helps I have used a hot melt glue gun in the past with no problems and the glue does not retain enough heat to upset the battery.
The battery can be held in place with a spike whilst it quickly sets.
If using a RTV sealant I would use Wurth RTV.
To be 100% safe use a purpose designed potting compound from RS components.