We've had the same problem, in our situation it had to do with the
setting "Maximum Number of Failed Attempts" in the passcode payload. The
counter wouldn't always reset after entering the correct password, so
after a while the machine would lock and...