This is the solution for anyone having 0 attempts remaining to enter their mep/unlock code.
Install Blackberry desktop manager on your pc. This is a free download from the Blackberry website.
Connect the Blackberry handset to your pc.
Open this software; it shows booting Rom and will ask for phone unlock code. This is not asking for the mep code, but rather the user code. If no code is entered then it will update Rom automatically.
Your handset will now reboot and the number of attempts will go back to 10; giving you an additional 10 attempts to enter your unlock code.