Flashing a stock ROM FTF file is the most reliable way to bypass a forgotten screen lock on devices with a locked bootloader. Xperia Flashtool (community-standard).