correctly propagate the return value of ldap_set_option

otherwise the second setOption call (LDAP_OPT_REFERRALS) won't be executed and in turn
paged searches will stop working with active directory
(Operations error on ldap_control_paged_result_response)