Fix 'duplicate declaration' in php::extension().

Following snippet leads to a 'duplicate declaration' error because the `before` dependency is always different. You can reproduce this by simply installing more than one pecl extension.

```
ensure_resource('package', $header_packages, {
  before => Package[$real_package]
})
```

This PR fixes this by declaring the dependency in a same way.