If you do not want to use third-party tools like Flashtool, Sony provides official methods to bypass a lock: Xperia Companion "Software repair"
This is the Sony firmware format. Specific "lock remove" FTF files are modified versions of the stock firmware that exclude the partitions to clear locks while flashing. Flashtool: sony h3113 lock remove ftf
In the "Wipe" pane, ensure USERDATA is checked. This is what removes the lock. If you do not want to use third-party
This is where the method comes in.