Lock screen when proximity sensor is covered
Have a look at Smart Cover, Cover Lock, Simple Cover Lock [Beta] and others on Google Play. You can probably find other apps that maybe are better for you by just looking at the 'similar' apps section on Google Play.