Use remove() instead of the unlink()

Change-Id: I5ccf22cc48a1477cf40450fc22cbd868d227481b
Reviewed-on: http://review.couchbase.org/32724
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>