(#227) allow for usage of non-blocking locks inside with statements