I lied and need help

I have a bf of 10yrs and we have 2 kids last night I locked my keys in the car and tried to get a cop to help well he ended up hitting on me and asked if I was single or had kids I said yes because my bf has warrants and we were just bullshitting before about protecting myself because I had a pepper spray in the car so I didn't think anything of it but I didn't wanna slip up and say his name or our address just in case well he ended up driving by my house and my bf got mad without even hearing the whole story so now im stuck and don't know what to do or say to my bf or the cop if I see him again because he asked where I work and I told him but that was before he hit on me...???