sql/swh-func: mark SELECT functions as stable
This allows inlining of the language sql functions that only select data from the database.