Add a lock for non-GVL Rubies.