isLocked improvement.

- Rewrote the method, there was some confusion between regex matches being found and regex matches being true, what was needed was a simple OR. 
- Added test, so if we get more use cases we can easily add them.
- Cleaned up the dumpsys log part.

>i don't think we even need a comment here at all. seems pretty straightforward: if someone has set the APPIUM_LOG_DUMPSYS env var, write the dumpsys output. otherwise don't.

@jlipps This is only true if you assume it's obvious when someone would want to set that variable and when they wouldn't.

That is to say, it's obvious *what* is happening, it's fairly opaque as to *why*.