Fix check of `fileno` on file descriptors.
Use LinkLockFile instead of LinkFileLock when available.
Updated test suite to Python 3.x.
No import used is absolute because of how `scafold` call them (__import__).