Review requests

- Refactored _isLocked() to _findLock(), added host and process id to error message for locked commands
- Made $keepAlive argument optional in waitForChildren()