You can download apps such as No Lock or Lockbot, however, realize that no app out there is 100% efficient in doing so, and that there are bugs that may arise when using them.
At this time, there is no single app that will do what you mentioned. There is already a thread on this topic, and I suggest you take a look at that one as it is a bit more developed. (I just posted in it earlier today so it shouldn't be too hard to find)