[bugfix] race condition on xinproc_bind and xinproc_close