Issue #274: Fix lock_aquire bug on superfast computers.

PR for https://github.com/backdrop/backdrop-issues/issues/274