move rrd_lock into rrd_open where the general rrd_file ops are located. -- Daniel...