Seeking for an alternative to lock the screen without pressing the power button in Lollipop
Try Screen Off and Lock and Screen Lock app from the playstore. You don't need to press the power button or wait for timeout to lock the screen. Just press the icon and it will lock the screen. You can customize the sounds and animation in which an animation plays before locking the screen.