PidFile::releaseLock checks validity of $this->file

- `releaseLock` now returns a boolean.
- Fixed CodeSniffer issues