How to lock phone without pressing power button?
If you're okay with apps doing this for you, then you could try this app. https://play.google.com/store/apps/details?id=com.lsc.lock You tap on it and it'll lock your phone and turn off your screen as well.