import fcntl in portalocker.py