Not sure if this is a problem with the script, or a bug in xautolock. Needs investigation.
xautolock
Just as it sounds, upon boot and login to i3, sometimes the locker immediately activates.