Remove redumdant fcntl() calls