Improve resource management for curl handle

Previous implementation was using its own refcounting (uses field of
the php_curl struct). zend_list_add/remove already implements its own
refcount, so we don't need to use an other one.
Merge branch 'PHP-5.5'

* PHP-5.5:
  Improve resource management for curl handle