Add a composer.lock file.

This should solve problems like #1002.