filedesc: tidy up fdfree
Implement fdefree_last variant and get rid of 'last' parameter.
No functional changes.