This makes spdk_file_write consistent with _file_sync. The lock should not be held across calls to send_request. Change-Id: I2a2987bbfe2688b520901267aa5a197bd55565a8 Signed-off-by: Cunyin Chang <cunyin.chang@intel.com> Reviewed-on: https://review.gerrithub.io/393599 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>