Avoid failing on composer self-update.

Only run `composer self-update` if the composer binary is owned by the
running user. If composer is owned by, say, root and a non-root user
runs causes `composer self-update` to be run then the command will fail.