SOC_U: Some changes to the *nix fcntl function.

This should fix it