[entropy.locks] make sure not to leak fds when using non-blocking calls