Please send a log-file to our support team at contact@nuki.io, so they can check the details of what happend.
As you maybe had no Debug mode on; please still provide us with the log file. Auto Unlock could maybe explained with some GPS issue, but lock command before is also very strange if not sent from you at that time.