Make Phalcon\Logger\Adapter::commit() clear the queue

See #1742