SERVER-14254 convert _v8_function from function pointer to boolean

(cherry picked from commit e48abc5beeec5c8b79a6a6a42f9d374ccd323fd2)
Merge remote-tracking branch 'upstream/v2.6' into v2.6