hostap_cs: fix sleeping function called from invalid context