Allocate SAPI output buffer from OS

This fixes invalid memory accesses when PancakeSAPIFlush() is called
after Zend MM is shut down.
Call PancakeSAPIFlush() on bailout