Solution 1:
In iOS 5, go to Settings > Notifications > Messages. Turn off 'View in Lock Screen'. It makes it so that iMessage/text message notifications don't show up on the lock screen.
In iOS 5, go to Settings > Notifications > Messages. Turn off 'View in Lock Screen'. It makes it so that iMessage/text message notifications don't show up on the lock screen.