Add dpa_is_achievement_unlocked() Progress template tag function.

This can only be used inside an achievements loop that fetches progress
details.