You can't get it from o2 - you need to get it from EE.
http://ee.co.uk/help/getting-started/joining-ee/unlocking-your-device
I have no affiliation whatsoever with O2 or any subsidiary companies. Comments posted are entirely of my own opinion. This is not Customer Service so we are unable to help with account specific issues.
Please select the post that helped you best and mark as the solution. This helps other members in resolving their issues faster. Thank you.