We had an older bity glider. I would just continue to pet her head, every chance I got. I would pull out sleeping pouch and pet her head. after a long time she would still try to give me a small bite if I left my finger in front of her face, and would give a good bite if allowed during nail cutting time. she was making slow progress but sadly she passed away ( we think she was older or had lived on a bad diet for many years). We now have one called mary, and she is making slow progress, but it just takes time and persistence with bonding tricks. in glider room she will climb all over us without biting.
I would put lily in bonding pouch during day and try to get her to sleep, if not I would leave in open and just continue to pet her 1. not letting her bite me or 2. my wife's method, making a fist and putting it next to glider so its much harder for glider to bite you, eventually they tire out and go to sleep with your hand/fist.
lily is young, so she should have to many bad habits, and you should be able to change her if you keep up bonding.