X-ray lasing as a result of an induced instability in an ablative capillary discharge