Test non-deprecated version of fcntl