Add check for apc.enabled option

Sometimes it's not possible to disable APC entirely and some of
apc_* functions are disabled. Only thing which is possible is
to disable 'apc.enable' option.