egencache: --write-timestamp to create metadata/timestamp.chk

This is required to sync repositories using rsnyc.

URL: https://bugs.gentoo.org/488972
Use portage.const.TIMESTAMP_FORMAT where appropriate