MB-9147: lseek can return 0 if the file has no len

This will avoid asserting incorrectly.
Backporting change from master branch into 2.5.0

Change-Id: Ibca0d69782f753e0dbb16652d5591a21e514c9f9
Reviewed-on: http://review.couchbase.org/29048
Reviewed-by: Chiyoung Seo <chiyoung.seo@gmail.com>
Tested-by: Chiyoung Seo <chiyoung.seo@gmail.com>
Reviewed-on: http://review.couchbase.org/29843
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: Chiyoung Seo <chiyoung@couchbase.com>