Can I mod my phone with bootloader locked?
Even if the Defy's bootloader is locked, you can still root it and install custom roms. It's with the help of a software called 2ndInit.

As mentioned in the comment, you can search in the xda forums to get the details. You can start here by rooting and then install any custom rom. :)