Check key expiration before deleting

Deleting an expired key should return 0, not success.

Fixes #1648

With active expiration, most keys on a lightly used server *will* expire soon after their expiration time.  Only on loaded servers or servers with manually disabled active expiration (via debug) will the problem of successfully deleting keys that shouldn't exist show itself.