flock py3.5 posix attribute

Closed Bitbucket Importer requested to merge bitbucket/declined-pr-576 into branch/py3.5