apc_inc/dec should return false on failure

Return false instead of 0 when failure occured while calling apc_inc or apc_dec.

Fixes #1472