Adds a secure bit to the flash cookie. Fix #2582