MacBook Pro froze and rebooted into Recovery HD My MacBook Pro was working fine this afternoon and after I came back from class in the evening, when I on the laptop, the white page just froze there for around 2 mins and I'm directed to a page asking me to select language. I chose English and it came to the OS X Utilities page where I'm given option to choose to restore, reinstall new OS X Lion, Disc Utility, and search for help online.

I've tried to reinstall it but it showed that my hard drive is locked. Does anyone knows what happened? There's no nearby Apple Store for me to take my Mac to.
In my experience a locked (read-only) disk in OS X means one of two things: An incompatible filesystem (Like Windows NTFS) or a dying drive. Yours is certainly not the former and likely the latter.

First, see if it can be repaired because it's worth a shot. Open Disk Utility from within the Recovery partition that it boots you into. Highlight your drive on the left-side column (You should see two hard drive icons. The top one represents the physical device and the lower one, indented, represents the volume that the computer sees) and then click the "Repair Disk" button on the right-side panel. See what it spits out at you in the log. Basically red text bad, green text good.

If it tells you the disk was repaired (green text): Restart the Mac and see if it boots up correctly. If it doesn't try holding option on boot and selecting your hard drive as the boot device. If you get back into the system successfully, BACK UP YOUR FILES with Time Machine or your preferred method to another disk.

If it tells you the disk couldn't be repaired (red text): Your drive might be failing. If you plug an external drive into the computer, you can use Disk Utility's Restore tab to clone your hard drive to the external drive. Source = your drive and Destination = the external drive (You can drag and drop them from the left column. Note: Make sure the external drive is blank because restoring wipes the destination drive before copying.

Once you've restored you could try booting off the external drive (Option on startup, select external drive) and doing the restore process in reverse.