As far as i know there is no app that will do that, it is as i know done for security and privacy reasons. Also suggest using a password to lock your phone. You can install apps that keep your messages hidden but once uninstalled it can your messages will no longer be locked.