s3:smbd: add fsp_lease_type() and get_lease_type() helper functions