This is not a bug - this is a safety feature. If you are asked for an unlock code, you (or someone else) has entered and created this code. Unless you remember this code there is no way to unlock the phone.
-
This safety feature is to prevent that thieves are getting access to private data.
+
This safety feature is to prevent that thieves can use a stole device or even are getting access to private data.
This is not a bug - this is a safety feature. If you are asked for an unlock code, you (or someone else) has entered and created this code. Unless you remember this code there is no way to unlock the phone.
This safety feature is to prevent that thieves are getting access to private data.