[ticket/11918] Make sql_freeresult() consistent across all DB drivers

PHPBB3-11918
Merge remote-tracking branch 'noxwizard/ticket/11918' into prep-release-3.1.0-a1

* noxwizard/ticket/11918:
  [ticket/11918] Make sql_freeresult() consistent across all DB drivers