This happens to me every time I install a fresh copy of CM. To fix it, set your normal lock mechanism, then go into Settings > Cyanogen > Lockscreen > Unlock options > "Skip on security". If you fail to enable phone security before checking this box, it will not disable itself. Have to first...